#-*- coding:utf-8 -*-
'''
Created on 2012-8-21

@author: johnny
'''
class MCommonException(Exception):
    def __init__(self, msg):
        self.msg = msg
        
    def __str__(self):
        return Exception.__str__(self) + self.msg

class StartUpException(Exception):
    def __str__(self):
        return Exception.__str__(self) + "Vm start failed or cannot connect"
    
class OperationTimeoutException(Exception):
    def __init__(self, timeout):
        self.timeout = timeout
        
    def __str__(self):
        return Exception.__str__(self) + "Operation Timeout %s" % self.timeout